#ifndef __DATA_CONVERT_H
#define __DATA_CONVERT_H
#include <stdint.h>
typedef union {
	uint32_t i;
	float f;
} un_DtformConver_1;
typedef union {
	float ul_Temp;
	uint8_t uc_Buf[4]; //小数转换成IEEE754格式的数组
	uint16_t us_Buf[2]; //用于modbus协议小数转换的数组
} un_DtformConver_2;

float uint32ToFloat(uint32_t i);
uint32_t floatToUint32(float f);

float uint16ToFloat(uint16_t *data);
void floatToUint16(float value, uint16_t *data);
#endif
